package com.xinchao.ck_mips.constant;

import android.os.Environment;

import java.io.File;

/**
 * 静态常量类
 */
public class CK {
    public static String SP_TOKEN = "ck_token";
    public static String SP_DEBUG_TOKEN = "ck_debug_token";
    public static String TAG = "ckmips";
    public static String SP_VOLUME = "ck_volume";
    public static String DEVICE_OPEN_CLOSE = "device_open_close";
    public static final String DB_NAME = "ck_mips.db";
    public static final String CK_IP = "ck_ip";
    public static final String CK_LIGHT = "ck_light";
    public static final String DEFAULT_OPEN_CLOSE = "default_open_close";
    public static final String BASE_PATH = Environment.getExternalStorageDirectory() + File.separator + "cx";
    public static final String WIFI_PATH = BASE_PATH + File.separator + "wifi";

    public static final String TOKEN_PATH = BASE_PATH + File.separator + "ck_token.txt";
    public static final String TOKEN_DEBUG_PATH = BASE_PATH + File.separator + "ck_d_token.txt";
    public static final String DEFAULT_DIRS_PATH = BASE_PATH + File.separator + "default";
    public static final String VERSION_DIRS_PATH = BASE_PATH + File.separator + "version";
    public static final String APK_PATH = BASE_PATH + File.separator + "apk";
    public static String[] JPG_PATH = {DEFAULT_DIRS_PATH + File.separator + "land_default.png", DEFAULT_DIRS_PATH + File.separator + "pro_default.png"};

    /**
     * 微信扫描二维码跳转小程序链接
     * 测试
     */
    // public static final String BAR_CODE_URL = "http://t84.xf.xcmaker.cn:5010/?devicecode=";
    //正式
    //public static final String BAR_CODE_URL = "http://static.ips.xcmaker.cn/?devicecode=";
    public static final String CK_HOST = "ck_host";

    public static final String CK_CHECK_FLAG = "ck_check_on_off_time";

    //开关屏
    public static String OPEN_SCREEN = "open_screen";
    public static String CLOSE_SCREEN = "close_screen";

    public static final int[] DEFAULT_ON_OFF = new int[]{6,30, 22, 00};//默认开关机时间
    public static final int DEFAULT_VOLUME = 20;//默认音量
    //工作日开机时间
    public static String WORK_DAY_ON_TIME = "work_day_on_time";
    //工作日关机时间
    public static String WORK_DAY_OFF_TIME = "work_day_off_time";
    //周末开机时间
    public static String WEEK_DAY_ON_TIME = "week_day_on_time";
    //周末关机时间
    public static String WEEK_DAY_OFF_TIME = "week_day_off_time";
    //重启持续监测
    public static String CURRENT_TIME = "current_time";

    public static String NOW_TIME = "now_time";

    public static String REBOOT_TIMES = "reboot_times";
}
